<!DOCTYPE html>

<html lang="zh-CN">
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<link rel="stylesheet" href="static/css/main.css">

		<link rel="apple-touch-icon" sizes="180x180" href="https://typescript.bootcss.com/apple-touch-icon-180x180.png">
		<link rel="icon" type="image/png" sizes="32x32" href="https://typescript.bootcss.com/favicon-32x32.png">
		<link rel="icon" type="image/png" sizes="16x16" href="https://typescript.bootcss.com/favicon-16x16.png">
		<link rel="shortcut icon" href="https://typescript.bootcss.com/favicon.ico">
		<link rel="mask-icon" href="https://typescript.bootcss.com/safari-pinned-tab.svg" color="#407afc">
		<meta name="theme-color" content="#407afc">

		<link type="application/atom+xml" rel="alternate" href="https://www.tslang.net/feed.xml" title="TypeScript 中文手册">
		<!-- Begin Jekyll SEO tag v2.0.0 -->
<title>TypeScript 中文手册 - TypeScript 中文手册</title>
<meta property="og:title" content="TypeScript 中文手册">
<meta name="description" content="TypeScript 可用于替代应用级的 JavaScript 开发。TypeScript 为 JavaScript 添加了可选的类型、类和模块系统。TypeScript 支持大规模 JavaScript 应用程序开发工具，支持任何浏览器、主机和操作系统。TypeScript 能够编译为易于识读的、兼容标准的 JavaScript 代码。">
<meta property="og:description" content="TypeScript 可用于替代应用级的 JavaScript 开发。TypeScript 为 JavaScript 添加了可选的类型、类和模块系统。TypeScript 支持大规模 JavaScript 应用程序开发工具，支持任何浏览器、主机和操作系统。TypeScript 能够编译为易于识读的、兼容标准的 JavaScript 代码。">
<link rel="canonical" href="https://www.tslang.net/">
<meta property="og:url" content="https://www.tslang.net/">
<meta property="og:site_name" content="TypeScript 中文手册">
<script type="application/ld+json">
  {
    "@context": "http://schema.org",
    "@type": "WebSite",
    "name": "Edition Template",
    "headline": "TypeScript 中文手册",
    "description": "TypeScript 可用于替代应用级的 JavaScript 开发。TypeScript 为 JavaScript 添加了可选的类型、类和模块系统。TypeScript 支持大规模 JavaScript 应用程序开发工具，支持任何浏览器、主机和操作系统。TypeScript 能够编译为易于识读的、兼容标准的 JavaScript 代码。",
    "logo": "https://www.tslang.net/siteicon.png",
    "sameAs": ["https://github.com/CloudCannon/edition-jekyll-template"],
    "url": "https://www.tslang.net/"
  }
</script>
<!-- End Jekyll SEO tag -->

		
	</head>

	<body>
		<header>
			<h1>
				<a href=""><img src="static/picture/typescript-icon.svg" width="40" height="40" alt="TypeScript 中文手册 logo"></a>
				TypeScript 中文手册
				<button type="button" class="open-nav" id="open-nav"></button>
			</h1>

			<form action="/search/" method="get" class="search-input-container">
				<input type="text" name="q" id="search-input" placeholder="Search" autofocus="">
				<div class="search-input-icon"><svg fill="#000000" height="24" viewbox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"></path><path d="M0 0h24v24H0z" fill="none"></path></svg></div>

				<input type="submit" value="Search" style="display: none;">
			</form>

			<nav class="full-navigation">
	

	
		<ul>
			<li class="nav-item top-level ">
				
					<a href="javascript:;">快速上手</a>
					<ul>
						
							
							<li class="nav-item "><a href="javascript:;">5分钟了解 TypeScript</a></li>
						
							
							<li class="nav-item "><a href="javascript:;">ASP.NET Core</a></li>
						
							
							<li class="nav-item "><a href="javascript:;">Gulp</a></li>
						
							
							<li class="nav-item "><a href="javascript:;">React与webpack</a></li>
						
							
							<li class="nav-item "><a href="javascript:;">React</a></li>
						
							
							<li class="nav-item "><a href="javascript:;">Angular 2</a></li>
						
							
							<li class="nav-item "><a href="javascript:;">从 JavaScript 迁移到 TypeScript</a></li>
						
					</ul>
				
			</li>
		</ul>
	
		<ul>
			<li class="nav-item top-level ">
				
					<a href="javascript:;">中文手册</a>
					<ul>
						
							
							<li class="nav-item "><a href="javascript:;">基础类型</a></li>
						
							
							<li class="nav-item "><a href="javascript:;">变量声明</a></li>
						
							
							<li class="nav-item "><a href="javascript:;">接口</a></li>
						
							
							<li class="nav-item "><a href="javascript:;">类</a></li>
						
							
							<li class="nav-item "><a href="javascript:;">函数</a></li>
						
							
							<li class="nav-item "><a href="javascript:;">泛型</a></li>
						
							
							<li class="nav-item "><a href="javascript:;">枚举</a></li>
						
							
							<li class="nav-item "><a href="javascript:;">类型推论</a></li>
						
							
							<li class="nav-item "><a href="javascript:;">类型兼容性</a></li>
						
							
							<li class="nav-item "><a href="javascript:;">高级类型</a></li>
						
							
							<li class="nav-item "><a href="javascript:;">Symbols</a></li>
						
							
							<li class="nav-item "><a href="javascript:;">Iterators 和 Generators</a></li>
						
							
							<li class="nav-item "><a href="javascript:;">模块</a></li>
						
							
							<li class="nav-item "><a href="javascript:;">命名空间</a></li>
						
							
							<li class="nav-item "><a href="javascript:;">命名空间和模块</a></li>
						
							
							<li class="nav-item "><a href="javascript:;">模块解析</a></li>
						
							
							<li class="nav-item "><a href="javascript:;">声明合并</a></li>
						
							
							<li class="nav-item "><a href="javascript:;">书写.d.ts文件</a></li>
						
							
							<li class="nav-item "><a href="javascript:;">JSX</a></li>
						
							
							<li class="nav-item "><a href="javascript:;">Decorators</a></li>
						
							
							<li class="nav-item "><a href="javascript:;">混入</a></li>
						
							
							<li class="nav-item "><a href="javascript:;">三斜线指令</a></li>
						
							
							<li class="nav-item "><a href="javascript:;">JavaScript文件里的类型检查</a></li>
						
					</ul>
				
			</li>
		</ul>
	
		<ul>
			<li class="nav-item top-level ">
				
					<a href="javascript:;">如何书写声明文件</a>
					<ul>
						
							
							<li class="nav-item "><a href="javascript:;">简介</a></li>
						
							
							<li class="nav-item "><a href="javascript:;">结构</a></li>
						
							
							<li class="nav-item "><a href="javascript:;">规范</a></li>
						
							
							<li class="nav-item "><a href="javascript:;">举例</a></li>
						
							
							<li class="nav-item "><a href="javascript:;">深入</a></li>
						
							
							<li class="nav-item "><a href="javascript:;">发布</a></li>
						
							
							<li class="nav-item "><a href="javascript:;">使用</a></li>
						
					</ul>
				
			</li>
		</ul>
	
		<ul>
			<li class="nav-item top-level ">
				
					<a href="javascript:;">工程配置</a>
					<ul>
						
							
							<li class="nav-item "><a href="javascript:;">tsconfig.json</a></li>
						
							
							<li class="nav-item "><a href="javascript:;">NPM包的类型</a></li>
						
							
							<li class="nav-item "><a href="javascript:;">编译选项</a></li>
						
							
							<li class="nav-item "><a href="javascript:;">在 MSBuild 里使用编译选项</a></li>
						
							
							<li class="nav-item "><a href="javascript:;">与其它构建工具整合</a></li>
						
							
							<li class="nav-item "><a href="javascript:;">使用 TypeScript 的每日构建版本</a></li>
						
					</ul>
				
			</li>
		</ul>
	
</nav>
		</header>

		<section class="main">
			<div class="page-header">
				<h2>TypeScript 中文手册</h2>
				<h3>TypeScript 中文手册</h3>
			</div>
			<article class="content">
				<p><img src="static/picture/typescript.svg" alt="TypeScript logo"></p>

<p>TypeScript是Microsoft公司注册商标。</p>

<p>TypeScript具有类型系统，且是JavaScript的超集。 它可以编译成普通的JavaScript代码。 TypeScript支持任意浏览器，任意环境，任意系统并且是开源的。</p>

<p>TypeScript目前还在积极的开发完善之中，不断地会有新的特性加入进来。 因此本手册也会紧随官方的每个commit，不断地更新新的章节以及修改措词不妥之处。</p>

<hr>

<p>TypeScript 中文文档出处：<a href="javascript:;">zhongsp/TypeScript</a> 仓库</p>

			</article>
		</section>

		<script>
			document.getElementById("open-nav").addEventListener("click", function () {
				document.body.classList.toggle("nav-open");
			});
		</script>
	</body>
</html>
